package cn.edu.wynu;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class BookTest {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
        BookHandler bookHandler = context.getBean(BookHandler.class);

        bookHandler.addBook();
        bookHandler.deleteBook();
    }
}